const list = [1, 2, 3, 4, 5];
console.log('result:' + list.shift());
console.log('list:' + list);